﻿<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="MyProfile.aspx.cs" Inherits="MyProfile" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
     <p class="title">
     我的帐号
        </p>
        <hr>
    <asp:Panel ID="Panel1" runat="server" Height="264px" Width="677px">
        <table style="width: 667px;">
            <tr>
                <td>
                    ID：<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
                <td>
                    用户名：<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    历史借阅记录</td>
                <td>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:GridView ID="GridView1" runat="server" EnableViewState="False" Height="244px"
                        SkinID="GridView" Width="668px" DataKeyNames="BookID" Font-Size="9pt">
                        <SelectedRowStyle Font-Size="9pt" />
                        <AlternatingRowStyle Font-Size="9pt" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </asp:Panel>
         <p class="title">
         图书信息
        </p>
        <hr><asp:Panel ID="Panel3" runat="server" Height="280px" Width="674px" HorizontalAlign="Center">
            <asp:DetailsView ID="DetailsView1" runat="server" Height="277px" SkinID="DetailsView"
                Width="545px" AutoGenerateRows="False" DataKeyNames="BookID" DataSourceID="SqlDataSource1" Font-Size="12pt">
                <Fields>
                    <asp:BoundField DataField="BookID" HeaderText="图书ID" ReadOnly="True" SortExpression="BookID" />
                    <asp:BoundField DataField="ISBN" HeaderText="ISBN" SortExpression="ISBN" />
                    <asp:BoundField DataField="BookName" HeaderText="书名" SortExpression="BookName" />
                    <asp:BoundField DataField="Author" HeaderText="作者" SortExpression="Author" />
                    <asp:BoundField DataField="PublishDate" HeaderText="出版日期" SortExpression="PublishDate" />
                    <asp:BoundField DataField="BookVersion" HeaderText="版本" SortExpression="BookVersion" />
                    <asp:BoundField DataField="WordCount" HeaderText="字数" SortExpression="WordCount" />
                    <asp:BoundField DataField="PageCount" HeaderText="页数" SortExpression="PageCount" />
                    <asp:BoundField DataField="Publisher" HeaderText="出版社" SortExpression="Publisher" />
                    <asp:BoundField DataField="ClassID" HeaderText="类别ID" SortExpression="ClassID" />
                </Fields>
            </asp:DetailsView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:LibraryConnectionString %>"
                SelectCommand="SELECT * FROM [TBL_BookInfo] WHERE ([BookID] = @BookID)">
                <SelectParameters>
                    <asp:ControlParameter ControlID="GridView1" Name="BookID" PropertyName="SelectedValue"
                        Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            &nbsp;
        </asp:Panel>
</asp:Content>

